package com.infra.micro.oss.domain.db.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "FileInfoPO", description = "file_info表实体对象")
public class FileInfoPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 文件唯一标识ID
     */
    @ApiModelProperty(name = "fileId", value = "文件唯一标识ID")
    private Long fileId;

    /**
     * BIGINT(19) 默认值[0] 必填
     * 文件大小
     */
    @ApiModelProperty(name = "size", value = "文件大小")
    private Long size;

    /**
     * VARCHAR(256) 必填
     * 文件MIME类型
     */
    @ApiModelProperty(name = "mimeType", value = "文件MIME类型")
    private String mimeType;

    /**
     * VARCHAR(36) 必填
     * 文件MD5值
     */
    @ApiModelProperty(name = "md5", value = "文件MD5值")
    private String md5;

    /**
     * VARCHAR(64) 必填
     * 文件SHA值
     */
    @ApiModelProperty(name = "sha", value = "文件SHA值")
    private String sha;

    /**
     * VARCHAR(512)
     * 缩略图列表
     */
    @ApiModelProperty(name = "thumbnail", value = "缩略图列表")
    private String thumbnail;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table file_info
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 文件唯一标识ID
     */
    public Long getFileId() {
        return fileId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 文件唯一标识ID
     */
    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    /**
     * BIGINT(19) 默认值[0] 必填
     * 获得 文件大小
     */
    public Long getSize() {
        return size;
    }

    /**
     * BIGINT(19) 默认值[0] 必填
     * 设置 文件大小
     */
    public void setSize(Long size) {
        this.size = size;
    }

    /**
     * VARCHAR(256) 必填
     * 获得 文件MIME类型
     */
    public String getMimeType() {
        return mimeType;
    }

    /**
     * VARCHAR(256) 必填
     * 设置 文件MIME类型
     */
    public void setMimeType(String mimeType) {
        this.mimeType = mimeType == null ? null : mimeType.trim();
    }

    /**
     * VARCHAR(36) 必填
     * 获得 文件MD5值
     */
    public String getMd5() {
        return md5;
    }

    /**
     * VARCHAR(36) 必填
     * 设置 文件MD5值
     */
    public void setMd5(String md5) {
        this.md5 = md5 == null ? null : md5.trim();
    }

    /**
     * VARCHAR(64) 必填
     * 获得 文件SHA值
     */
    public String getSha() {
        return sha;
    }

    /**
     * VARCHAR(64) 必填
     * 设置 文件SHA值
     */
    public void setSha(String sha) {
        this.sha = sha == null ? null : sha.trim();
    }

    /**
     * VARCHAR(512)
     * 获得 缩略图列表
     */
    public String getThumbnail() {
        return thumbnail;
    }

    /**
     * VARCHAR(512)
     * 设置 缩略图列表
     */
    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail == null ? null : thumbnail.trim();
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table file_info
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fileId=").append(fileId);
        sb.append(", size=").append(size);
        sb.append(", mimeType=").append(mimeType);
        sb.append(", md5=").append(md5);
        sb.append(", sha=").append(sha);
        sb.append(", thumbnail=").append(thumbnail);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table file_info
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FileInfoPO other = (FileInfoPO) that;
        return (this.getFileId() == null ? other.getFileId() == null : this.getFileId().equals(other.getFileId()))
            && (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
            && (this.getMimeType() == null ? other.getMimeType() == null : this.getMimeType().equals(other.getMimeType()))
            && (this.getMd5() == null ? other.getMd5() == null : this.getMd5().equals(other.getMd5()))
            && (this.getSha() == null ? other.getSha() == null : this.getSha().equals(other.getSha()))
            && (this.getThumbnail() == null ? other.getThumbnail() == null : this.getThumbnail().equals(other.getThumbnail()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table file_info
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFileId() == null) ? 0 : getFileId().hashCode());
        result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
        result = prime * result + ((getMimeType() == null) ? 0 : getMimeType().hashCode());
        result = prime * result + ((getMd5() == null) ? 0 : getMd5().hashCode());
        result = prime * result + ((getSha() == null) ? 0 : getSha().hashCode());
        result = prime * result + ((getThumbnail() == null) ? 0 : getThumbnail().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}